﻿using com.iot.core.annotation;
using com.iot.core.data;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations; 

namespace com.iot.ht.Controllers.httask.data
{
    [Schema(Name = "后台任务表", Description = "")]     
    public class HtTaskApp : BaseEntity
    {
        [Comment("HostId")]
        [Schema(Name = "HostId", Description = "")] 
        [MaxLength(50)]
        public string HostId { get; set; } = "";


        [Comment("名称")]
        [Schema(Name = "名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";

        [Comment("自动启动")]
        [Schema(Name = "自动启动", Description = "")] 
        public bool AutoStart { get; set; } 


        [Comment("DLL完整路径")]
        [Schema(Name = "DLL路径", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(200)]
        public string DllPath { get; set; } = "";//



        [Comment("类名称")]
        [Schema(Name = "类名称", Description = "")]        
        [MaxLength(200)]
        public string ClsFullName { get; set; } = "";
 

        [Comment("参数1")]
        [Schema(Name = "参数1", Description = "")]
        [MaxLength(400)]
        public string P1 { get; set; } = "";

        [Comment("参数2")]
        [Schema(Name = "参数2", Description = "")]
        [MaxLength(400)]
        public string P2 { get; set; } = "";


        [Comment("参数3")]
        [Schema(Name = "参数3", Description = "")]
        [MaxLength(400)]
        public string P3 { get; set; } = "";


        [Comment("参数4")]
        [Schema(Name = "参数4", Description = "")]
        [MaxLength(400)]
        public string P4 { get; set; } = "";


        [Comment("执行间隔")]
        [Schema(Name = "执行间隔", Description = "")]
        public int Interval { get; set; } = 10;

         

        [Comment("排序号")]
        [Schema(Name = "排序号", Description = "")]
        public long Sortno { get; set; } = 3;
    }
}
